package com.clw.classfile.constantpool.info;

/**
 * Created by chengliwei on 2018/11/12.
 */
public class ConstantInvokeDynamic implements ConstantInfo {

    public static final byte TAG = 18; // value = 18
    private short bootstrapMethodAttrIndex; // 值必须是对当前Class文件中引导方法表的bootstrap_methods[]数组的有效索引
    private short nameAndTypeIndex; // 值必须是对当前常量池的有效索引，常量池在该索引处的项必须是CONSTANT_NameAndType_info结构，表示方法名和方法描述符

    public ConstantInvokeDynamic(short bootstrapMethodAttrIndex, short nameAndTypeIndex) {
        this.bootstrapMethodAttrIndex = bootstrapMethodAttrIndex;
        this.nameAndTypeIndex = nameAndTypeIndex;
    }
}
